package com.css.security.core.validate.code.image;

import com.css.security.core.validate.code.ValidateCode;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.awt.image.BufferedImage;
import java.time.LocalDateTime;

/**
 * ImageCode
 *
 * @author hanyx
 * @date 2019/04/11
 */
public class ImageCode extends ValidateCode {

    private static final long serialVersionUID = -6365791014477584691L;

    @Getter
    @Setter
    private BufferedImage image;

    public ImageCode(BufferedImage image, String code, int expireIn){
        super(code, expireIn);
        this.image = image;
    }

    public ImageCode(String code, LocalDateTime expireTime) {
        super(code, expireTime);
    }

}
